-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mutex to tree move function, fix #1518 #2082
Conversation
Code Climate has analyzed commit e43e493 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 56.2% (50% is the threshold). This pull request will bring the total coverage in the repository to 75.2% (0.0% change). View more on Code Climate. |
d53eaf3
to
99237f5
Compare
I will improve the user notification and error handling a little before we merge this. |
e9a80c0
to
2f1696d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this will hopefully reduce our problems! 🤞
2f1696d
to
b527a79
Compare
de8846f
to
058dce1
Compare
... a few more things need fixing. |
b359a71
to
97fe210
Compare
97fe210
to
18c4292
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
* Use django-db-mutex module to implement a mutex that allows only one page tree move operation at a time. Co-authored-by: Timo Ludwig <[email protected]>
18c4292
to
e43e493
Compare
@timoludwig @ulliholtgrave lets merge and deploy? I can have a close look at the prod CMS the remaining day. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me
One caveat I just noticed: The pages are also moved when the page form is submitted, so in theory we also need to put the page form into the same mutex? 🤔 |
Yes lets merge and continue that later. |
Short description
Prevent race conditions in page tree. This is no replacement for database transactions. This would not catch problems where the process dies in the middle of changing a tree structure.
Proposed changes
Side effects
Resolved issues
Fixes: #1518
Pull Request Review Guidelines